﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="1003-1.aspx.cs" Inherits="_1003_1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="conent-R-inner">
        <div id="nav" runat="server" clientidmode="Static">
            <a href="index.aspx">首頁</a><img src="css/tem/img/img-icon-4.jpg" width="5" height="7" /><a
                href="#">最新消息</a><img src="css/tem/img/img-icon-4.jpg" width="5" height="7" /><a
                    href="#">新聞內容</a></div>
        <div class="clr">
        </div>
        <div class="news-head">
        </div>
        <table width="740" border="0" cellpadding="0" cellspacing="1">
            <tr>
                <td width="19%" align="center" valign="middle" class="green">
                    <% Response.Write("訊息種類".ConverToCN());%>
                </td>
                <td width="57%" align="center" valign="middle" class="green">
                    <% Response.Write("主題".ConverToCN());%>
                </td>
                <td width="24%" align="center" valign="middle" class="green">
                    <% Response.Write("發布時間".ConverToCN());%>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top" class="dotline-1">
                    <asp:Label ID="lab_claname" runat="server"></asp:Label>
                </td>
                <td align="left" valign="top" class="dotline-1">
                    <asp:Label ID="lab_subject" runat="server"></asp:Label>
                </td>
                <td align="center" valign="top" class="dotline-1">
                    <asp:Label ID="lab_date" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="left" valign="top" class="dotline-1">
                    <div id="div_content" runat="server">
                    </div>
                </td>
            </tr>
        </table>
        <div class="news-download">
            <% Response.Write("相關檔案下載".ConverToCN());%></div>
        <cc1:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False"
            EmptyDataText="" BorderWidth="0px" CellSpacing="5" CellPadding="0"
            Width="100%" GridLines="None" ShowHeader="False">
            <Columns>
                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/css/tem/img/img-icon-7.jpg" Width="20" Height="20" />
                    </ItemTemplate>
                    <ItemStyle Width="3%" HorizontalAlign="Left" VerticalAlign="Top" />
                </asp:TemplateField>

                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl='<%# getUrl(Eval("file_no")) %>' ><%# Eval("file_name").ConverToCN()%></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Width="97%" />
                </asp:TemplateField>
            </Columns>
        </cc1:GridView>
        <br />
        <div class="page">
            <img src="css/tem/img/img-news-2.jpg" width="21" height="21" />
            <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click"><% Response.Write("上一則".ConverToCN());%></asp:LinkButton>
            <img src="css/tem/img/img-news-2.jpg" width="21" height="21" />
            <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click"><% Response.Write("下一則".ConverToCN());%></asp:LinkButton></div>
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="Get_messagefile_AllData" TypeName="CCH.DAO.messagefileDAO">
        <SelectParameters>
            <asp:Parameter DefaultValue="0" Name="mes_no" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="hidd_no" runat="server" />
    <asp:HiddenField ID="hidd_sfuNo" runat="server" />
</asp:Content>

